Release 10.1A: OpenEdge Data Management:
Database Administration
Creating a database with the PRODB utility
If the target database does not have a
Note: When using PRODB to create a copy of a database, all the files of the database copy will reside in the same directory, unless a.stfile, the PRODB utility creates a new database from a specified source database. PRODB creates a new database using the structure of the source database and places all of the extents in the current working directory. You can use PRODB to make a copy of any of the demonstration or empty OpenEdge databases..stfile already exists for the target database.See the "PRODB utility" section for more information about PRODB.
ExamplesThe following examples illustrate how to create databases with PRODB.
![]()
To create an empty database called
mysamplefrom a copy of the default empty database, enter the following:
![]()
To create a new database called
mysports2000from a copy of the sports2000 database, enter the following:
![]()
To create a new database called
pastinfofrom a copy of an existing database namedcurrentinfo, enter the following:
PRODB does not copy the external triggers associated with the database you are copying.
Note: See Chapter 14, "Maintaining Database Structure," for information about changing pathname conventions when adding storage areas and extents to a structure description file.PRODB maintains pathname convention
When you use the PRODB utility, the target database you create maintains the same pathname convention, relative or absolute, as the source database. For example, if you use PRODB to create a database and name it
example1, and use a relative path database such assports2000as the source database, PRODB maintains the pathname convention ofsports2000(the source database), andexample1(the target database) becomes a relative path database. Conversely, if the source database is an absolute path database, the target database you create with PRODB will also be an absolute path database. Use PROSTRCT LIST to verify whether the pathname is relative or absolute. For example:
In the following sample output of the PROSTRCT LIST utility, note dot (.) notation of the relative pathname of the database,
example1.db:
See OpenEdge Getting Started: Database Essentials for an explanation of relative- and absolute-pathnames.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |